import service from "../utils/request";
import {queryKey} from '../utils'

// 储存列表
export function getStorageList(params:any) {
  const other = queryKey()
  return service.get(`/storage`, { params:{...params, ...other} });
}
// export function createHostList(data:any) {
//   return service.post(`/host`, data);
// }
export function editStorageList(id:number,data:any) {
  return service.put(`/storage/${id}`,data);
}
// export function deleteHostList(id:number) {
//   return service.delete(`/host/${id}`);
// }
// export function getHostListDetail(id:number) {
//   return service.get(`/host/${id}`);
// }